package org.raphets.todayinhistory;

import android.test.AndroidTestCase;

import org.raphets.todayinhistory.http.RetrofitHelper;
import org.raphets.todayinhistory.mvp.presenter.TodayInHistoryPresenter;

import java.util.Calendar;

/**
 * Created by Administrator on 2016/12/16.
 */

public class MyTest extends AndroidTestCase {

    public void test() throws Exception {
//        System.out.print("result=" + 4);

//        TodayInHistoryPresenter mPresent = new TodayInHistoryPresenter(null);

        int currentMonth;
        int currentDay;
        Calendar mCalendar = Calendar.getInstance();
        currentMonth = mCalendar.get(Calendar.MONTH) + 1;
        currentDay = mCalendar.get(Calendar.DAY_OF_MONTH);

//        mPresent.getData(currentMonth, currentDay);

        RetrofitHelper.getInstance()
                .getHistoryString(currentMonth, currentDay);
    }
}
